<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>一生V8_可以赚钱的全静态html网站源码！下载上传就能全自动赚钱</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="hyui/ui.css">
<link rel="stylesheet" href="hyui/style.css">
<link rel="stylesheet" href="css/mui.min.css">
<link rel="stylesheet" href="View/hy_moblie/app.css">
<style>
  html,
  body {
  background-color: #efeff4;
  }
.mui-content .mui-fullscreen {
  top: 44px;
  height: auto;
  }
  .mui-pull-top-tips {
  position: absolute;
  top: -20px;
  left: 50%;
  margin-left: -25px;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  z-index: 1;
  }
  .mui-bar~.mui-pull-top-tips {
  top: 24px;
  }
  .mui-pull-top-wrapper {
  width: 42px;
  height: 42px;
  display: block;
  text-align: center;
  background-color: #efeff4;
  border: 1px solid #ddd;
  border-radius: 25px;
  background-clip: padding-box;
  box-shadow: 0 4px 10px #bbb;
  overflow: hidden;
  }
  .mui-pull-top-tips.mui-transitioning {
  -webkit-transition-duration: 200ms;
  transition-duration: 200ms;
  }
  .mui-pull-top-tips .mui-pull-loading { 
  margin: 0;
  }
  .mui-pull-top-wrapper .mui-icon,
  .mui-pull-top-wrapper .mui-spinner {
  margin-top: 7px;
  }
  .mui-pull-bottom-tips {
  text-align: center;
  background-color: #efeff4;
  font-size: 15px;
  line-height: 40px;
  color: #777;
  }
  .mui-pull-top-canvas {
  overflow: hidden;
  background-color: #fafafa;
  border-radius: 40px;
  box-shadow: 0 4px 10px #bbb;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  }
  .mui-pull-top-canvas canvas {
  width: 40px;
  }
  .mui-slider-indicator.mui-segmented-control {
  background-color: #efeff4;
  }
  .modetext{color:#FF0000;;border: thin solid #FF0000; margin-right:20px;}
  .mui-navigate-right{color:#333333}
  .rbar{
 position: absolute;
 z-index: 999;
 top: 46px;
 right: 0px;
 padding:5px;
 background-color: #fafafa;
 }
 .red{color:#FF0000}
video{height:180px;}
.xf_div{
text-align:center; font-size:small;
line-height:30px;
position:fixed; right:10px; bottom:100px;
cursor:pointer;
z-index:9;
background-color:#0000FF;
padding:10px;
}
.xf_div a{color:#FFFFFF;}
</style>
 </head>

 <body>
 
 <header class="mui-bar mui-bar-nav">
 <form action="s.html" onSubmit="sreachsub()">
<a href="https://www.ysv8.com"><h1 class="mui-pull-left" style="width:36%; height:36px; overflow:hidden" id="title">一生V8</h1></a><div class="mui-pull-righ
header-sreach"><input id="sreach" name="q" type="text" class="mui-input-clear" value="美女" placeholder="美女" style="width:50%"><span class="mui-icon mui-icon-search sreach"></span></div>
  </form>
 </header>
 <div class="mui-content">
  <div id="slider" class="mui-slider mui-fullscreen">
  <div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
<div class="mui-scroll" id="group">

</div>
</div>
<div class="mui-slider-group" style="padding-bottom:60px;">

</div>
</div>
</div>
<div class="rbar"><span class="mui-icon mui-icon-plusempty more"></span></div>
<nav class="mui-bar mui-bar-tab"><a class="mui-tab-item" her="f0"><span class="mui-icon mui-icon-home"></span><span class="mui-tab-label">首页</span></a>
<a class="mui-tab-item" her="f3"><span class="mui-icon mui-icon mui-icon-videocam"></span><span class="mui-tab-label mui-active">视频</span></a>
<a class="mui-tab-item" her="w0"><span class="mui-icon mui-icon mui-icon-pengyouquan"></span><span class="mui-tab-label">微动态</span></a>
<a class="mui-tab-item" her="my.html"><span class="mui-icon mui-icon-gear"></span><span class="mui-tab-label">我的</span></a></nav>
<div class="xf_div"><a her="https://www.ysv8.com/post.html"> <span class="mui-icon mui-icon-compose"><br>发布</span></a><br><a her="https://www.ysv8.com/open"> <span class="mui-icon mui-icon-download"><br>下载</span></a><br><a her="friend"><span class="mui-icon mui-icon-chat" id="mess"></span></a></div>
<script src="config.js"></script>
<script src="js/jquery.min.js"></script>
<script src="hyui/hy.js"></script><script src="View/hy_moblie/app.js"></script>
<script>
type=getQueryString('type');
if(type==null){type=0;}
posttype=getQueryString('posttype');
if(posttype==null){posttype='forum_get';
typetext=['一生V8','图片','资源','视频','问答'];
}else{
typetext=['微动态','图动态','视频动态'];
}
document.getElementById('title').innerHTML=typetext[type];
//document.title=typetext[type];
var optionss=localStorage.getItem("groupmy"); 
if(optionss){var group=JSON.parse(optionss);var groupmyi=0; }else{
var groupmyi=0; 
var group=[{name:'问答',id:-1,size:1},{name:'广场',id:0,size:3},{name:'养生',id:26,size:1},{name:'美女',id:43,size:1},{name:'搞笑视频',id:61,size:1},{name:'两性',id:25,size:1},{name:'主播秀',id:74,size:1}];
}
function wgroup(group){
var table=document.body.querySelector('.mui-slider-group');
var table2=document.getElementById('group');
 for (i = 0;i < group.length; i++) {
var li = document.createElement('div');
var li2 = document.createElement('a');
if(group[i]['size']==3){
li.className = 'mui-slider-item mui-control-content mui-active';
li2.className = 'mui-control-item mui-active';
}else{
li.className = 'mui-slider-item mui-control-content';
li2.className = 'mui-control-item';
}
li.id='item'+i+'mobile';
li2.href='#item'+i+'mobile';
li.innerHTML = '<div id="scroll1" class="mui-scroll-wrapper"><div class="mui-scroll" id="ms'+i+'" did="'+group[i]['id']+'"><ul class="mui-table-view" id="mv'+i+'"></ul></div></div>';
li2.innerHTML = group[i]['name'];
table.appendChild(li);
table2.appendChild(li2);
}
}
wgroup(group);
</script>
<script src="js/mui.min.js"></script>
<script src="js/mui.pullToRefresh.js"></script>
<script src="js/mui.pullToRefresh.material.js"></script>
<script>
window.hy_user = "";
window.hy_avatar = "";
var objhide=false;
mui.init({
swipeBack:true,
beforeback: function(){
if(typeof(objhide)=='number'){
hide_lt(objhide);
return false;
}
if(typeof(objhide)=='boolean' && objhide){
hide_friend_box();
return false;
}
}
});
function sreachsub2(){
mui.each(document.querySelectorAll('.mui-slider-group .mui-scroll'), function(index, pullRefreshEl) {
div=pullRefreshEl.querySelector('.mui-table-view');
while(div.hasChildNodes()){ div.removeChild(div.firstChild); } 
pullRefreshEl.style.transform="translate3d(0px, 0px, 0px)";
});
dataa = []; 
 ajaxbool=false;
setTimeout(function() {getdowndata('no',document.getElementById('ms'+slideNumber).getAttribute("did"),document.getElementById('mv'+slideNumber));}, 500);
}
function getdowndata(self,id,table){
if(ajaxbool){if(typeof(self)=="object"){self.endPullDownToRefresh();}return;}
ajaxbool=true;
mui.post('https://www.ysv8.com/open/'+posttype+'?lang='+lang,{pageid:'0',type:type,id:id,gi:groupmyi,YSV8_HEX:ysv8hex},function(data2){ 
if(data2['my'].length>0){
data2['my'].unshift({name:'问答',id:-1,size:1},{name:'广场',id:0,size:3});
 localStorage.setItem("groupmy",JSON.stringify(data2['my']));
}
var data=data2['data'];
loadi=0;
loadni=0;

if(typeof(data2['us']['user'])!="undefined"){ 
window.hy_user = data2['us']['user'];
window.hy_avatar = data2['us']['avatar']['a'];
document.getElementById('mess').innerHTML='<br>'+data2['us']['mess'];
if(data2['us']['mess']>0){
document.getElementById('mess').className='mui-icon mui-icon-chat red';
}
}
for (i = data.length-1;i >-1; i--) {
 sethtml(data[i],table,id,'down')
} 
if(typeof(self)=="object"){ 
 if(loadi<10){
self.endPullDownToRefresh(); 
var li = document.createElement('li');
  li.className = 'mui-table-view-cell mui-media';
  li.innerHTML = '<p style="text-align:center">全部加载完毕</p>';
  table.appendChild(li);
}else{
self.endPullDownToRefresh(); 
 } 
 } 
 mui.toast('更新了'+loadni+'条记录',{ duration:'short', type:'div' });
 mui('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true,
deceleration:deceleration
});
 ajaxbool=false
 },'json'
);
}
function getupdata(self,id,table){
if(ajaxbool){self.endPullUpToRefresh(false);return;}
 ajaxbool=true;
 mui.post('https://www.ysv8.com/open/'+posttype+'?lang='+lang,{pageid:pagtime,type:type,id:id,YSV8_HEX:ysv8hex},function(data2){
 var data=data2['data'];
loadi=0;
loadni=0;
 for (i = 0;i < data.length; i++) {
 sethtml(data[i],table,id,'up') 
}
 mui.toast('成功加载'+loadi+'条记录',{ duration:'short', type:'div' });
mui('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true,
deceleration:deceleration
});
if(loadi<10){
self.endPullUpToRefresh(true); 
var li = document.createElement('li');
  li.className = 'mui-table-view-cell mui-media';
  li.innerHTML = '<p style="text-align:center">全部加载完毕</p>';
  table.appendChild(li);
}else{
self.endPullUpToRefresh(false);
 }
 
 ajaxbool=false
 },'json'
);
}

var slideNumber=1;
var deceleration = mui.os.ios?0.003:0.0009;
(function($) {
$('.mui-scroll-wrapper').scroll({
bounce: false,
indicators: true,
deceleration:deceleration
});
$.ready(function() {
$.each(document.querySelectorAll('.mui-slider-group .mui-scroll'), function(index, pullRefreshEl) {
var selfid=pullRefreshEl.getAttribute("did");
$(pullRefreshEl).pullToRefresh({
down: {
callback: function() {
var self = this;
setTimeout(function() {
getdowndata(self,selfid,self.element.querySelector('.mui-table-view'));
     }, 1000);
    }
    },
    up: {
    callback: function() {
     var self = this;
     setTimeout(function() {
     getupdata(self,selfid,self.element.querySelector('.mui-table-view'));
     }, 1000);
    }
    }
   });
/*幻灯片事件*/   
document.querySelector('.mui-slider').addEventListener('slide', function(event) {
if(slideNumber!=event.detail.slideNumber){
 ajaxbool=false;
getdowndata('no',document.getElementById('ms'+event.detail.slideNumber).getAttribute("did"),document.getElementById('mv'+event.detail.slideNumber));
slideNumber=event.detail.slideNumber;
}

});
/*底部导航*/ 
var herid='f0';
$(".mui-bar-tab").on('tap','.mui-tab-item',function(){
if(herid==this.getAttribute("her")){
return false;
}
herid = this.getAttribute("her");
if(herid=='f3'){
type=3;
posttype='forum_get';
typetext=['一生V8','图片','资源','视频','问答'];
document.getElementById('title').innerHTML=typetext[type];
document.title=typetext[type];
sreachsub2();
return false;
}
if(herid=='f0'){
type=0;
posttype='forum_get';
typetext=['一生V8','图片','资源','视频','问答'];
document.getElementById('title').innerHTML=typetext[type];
document.title=typetext[type];
sreachsub2();
return false;
}
if(herid=='w0'){
type=0;
posttype='weibo_get';
typetext=['微动态','图动态','视频动态'];
document.getElementById('title').innerHTML=typetext[type];
document.title=typetext[type];
sreachsub2();
return false;
}

if(herid!=null){
mui.openWindow({
url: herid, 
id:herid
});
}
}); 
/*A时间*/
mui(".xf_div").on('tap','a',function(){
 id = this.getAttribute("her");
 if(id=='friend'){
 setTimeout(function() {objhide=true;tog_friend_box();},500);
 return false;
 }
 mui.openWindow({
 url: id, 
 id:id
 });
}); 
mui(".mui-slider-group").on('tap','.mui-navigate-right',function(){
 id = this.getAttribute("id");
 mui.openWindow({
 url: 't.html?id='+id, 
 id:'info'
 });
});
/*A更多*/ 
 mui(".rbar").on('tap','.more',function(){
 mui.openWindow({
 url: 'more.html', 
 id:'more'
 });
 });
/*A搜索支持*/
mui(".header-sreach").on('tap','.sreach',function(){
var gethtml=sreachsub();
}); 
/*微博顶踩*/
mui(".mui-slider-group").on('tap','span',function(){
id = this.getAttribute("id");
size = this.getAttribute("size");
var _obj=this;
if(!in_array(id,vote_data)){
return false;
}
vote_data.push(id);
if(id>0){
 mui.post('https://www.ysv8.com/open/weibo_vote',{type:size,id:id},function(data){
if(!data['error']){
mui.alert(data['info'],'错误');
}else{
classname=_obj.getAttribute("class")
_obj.className = classname+' red';
it=parseInt(_obj.innerText);
_obj.innerText = it+1;
_obj.id=0;
}
},'json');

}
}); 
/*微博链接*/
mui(".mui-slider-group").on('tap','.pla',function(){
 id = this.getAttribute("id");
 mui.openWindow({
 url: 'wt.html?id='+id, 
 id:'info'
 });
});

setTimeout(function() {getdowndata('no',document.getElementById('ms1').getAttribute("did"),document.getElementById('mv1'));}, 500);
});
});
})(mui);
</script>
 </body>

</html>